package method.method1202;

public class exe02 {
    public static void main(String[] args) {
        int[] arr={10,9,6,8,3};
        int a=maxnum(arr);
        System.out.println(a);
    }
    public static int maxnum(int[] arr){
        int max=arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i]>max){
                max=arr[i];
            }
        }
        return max;
    }
}
